package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkUndertakePayroll;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkUndertakePayrollVo;
import com.ruoyi.logistic.mapper.NetworkUndertakePayrollMapper;
import com.ruoyi.logistic.service.NetworkUndertakePayrollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NetworkUndertakePayrollServiceImpl implements NetworkUndertakePayrollService {
    @Autowired
    private NetworkUndertakePayrollMapper networkUndertakePayrollMapper;
    @Override
    public List<NetworkUndertakePayroll> search(NetworkUndertakePayrollVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return networkUndertakePayrollMapper.search(vo);
    }
}
